﻿/*
 * XDevelopHelper
 *  @Author: XTST
 *  @Git: https://gitee.com/XTST/XUnityDevelopHelper
 *  Copyright © 2013-2018 Xiaotian Jin. All rights reserved.
 * */

using XDevelopHelper.Event.Base;

namespace XDevelopHelper.Event
{
    internal sealed partial class EventPool<T> where T : BaseEventArgs
    {
        private struct TriggeredEvent
        {
            #region Data

            private readonly object sender;
            private readonly T eventArgs;

            #endregion

            public TriggeredEvent(object s, T e)
            {
                sender = s;
                eventArgs = e;
            }

            public object Sender
            {
                get
                {
                    return sender;
                }
            }

            public T EventArgs
            {
                get
                {
                    return eventArgs;
                }
            }
        }
    }
}
